<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/config.inc.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/top.inc.php');
	
	if (isset($_POST['building_id']))
	{
		$building_id = mysql_real_escape_string(strip_tags($_POST['building_id']));
	}
	
	if (isset($_POST['schedule_id'])) {
		$schedule_id = mysql_real_escape_string(strip_tags($_POST['schedule_id']));
	}
	
	$query = "delete from schedule where id = '$schedule_id'";
	mysql_query($query);
	
	
	header("Location:postSchedule.php?building_id=$building_id");
	
?>	
	
	
<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/bottom.inc.php');
?>